.class public Lcom/xingbook/huiben/activity/OpenHuibenAct;
.super Lcom/xingbook/park/activity/BaseActivity;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Landroid/widget/LinearLayout;

.field private c:Landroid/widget/ProgressBar;

.field private d:Landroid/widget/TextView;

.field private e:Z

.field private f:Lcom/xingbook/huiben/activity/n;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->e:Z

    new-instance v0, Lcom/xingbook/huiben/activity/n;

    invoke-direct {v0, p0}, Lcom/xingbook/huiben/activity/n;-><init>(Lcom/xingbook/huiben/activity/OpenHuibenAct;)V

    iput-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->f:Lcom/xingbook/huiben/activity/n;

    return-void
.end method

.method private a(I)V
    .locals 2

    const-string v0, "\u7cbe\u5f69\u5373\u5c06\u5f00\u59cb\u00b7\u00b7\u00b7"

    invoke-direct {p0, v0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->a(Ljava/lang/String;)V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/huiben/activity/m;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/huiben/activity/m;-><init>(Lcom/xingbook/huiben/activity/OpenHuibenAct;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public static final a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    if-nez p1, :cond_0

    const-string v0, ""

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "\u65e0\u6548\u7684\u7ed8\u672cID"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/huiben/activity/OpenHuibenAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, " com.xingbook.huiben.activity.OpenHuibenAct.INTENT_ID"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    instance-of v1, p0, Landroid/app/Activity;

    if-nez v1, :cond_1

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_1
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method private declared-synchronized a(Ljava/lang/String;)V
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic a(Lcom/xingbook/huiben/activity/OpenHuibenAct;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->e:Z

    return v0
.end method

.method static synthetic b(Lcom/xingbook/huiben/activity/OpenHuibenAct;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->a:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/huiben/activity/OpenHuibenAct;)Lcom/xingbook/huiben/activity/n;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->f:Lcom/xingbook/huiben/activity/n;

    return-object v0
.end method


# virtual methods
.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u7ed8\u672c-\u6253\u5f00\u7ed8\u672c"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 10

    const/16 v5, 0x11

    const/high16 v7, 0x42a0

    const/high16 v9, 0x420c

    const/4 v3, -0x2

    const/4 v8, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.STOP"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, " com.xingbook.huiben.activity.OpenHuibenAct.INTENT_ID"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->a:Ljava/lang/String;

    if-nez v1, :cond_0

    const-string v1, "\u65e0\u6548\u7684\u7ed8\u672cid"

    invoke-static {p0, v1, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->finish()V

    :cond_0
    new-instance v1, Landroid/widget/LinearLayout;

    invoke-direct {v1, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setGravity(I)V

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v2, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v2, 0xffffff

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    new-instance v3, Landroid/widget/LinearLayout;

    invoke-direct {v3, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v8}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v3, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v2}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    mul-float v3, v9, v0

    float-to-int v3, v3

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v3, v3, v3, v3}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v8}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/ProgressBar;

    invoke-direct {v4, p0}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->c:Landroid/widget/ProgressBar;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->c:Landroid/widget/ProgressBar;

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f020352

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ProgressBar;->setIndeterminateDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->c:Landroid/widget/ProgressBar;

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    mul-float v6, v7, v0

    float-to-int v6, v6

    mul-float/2addr v7, v0

    float-to-int v7, v7

    invoke-direct {v5, v6, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v4, v5}, Landroid/widget/ProgressBar;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->c:Landroid/widget/ProgressBar;

    invoke-virtual {v4, v8}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    iget-object v5, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->c:Landroid/widget/ProgressBar;

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v4, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    mul-float/2addr v0, v9

    invoke-virtual {v4, v8, v0}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v8, v8, v8}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->b:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method protected onPause()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/huiben/activity/OpenHuibenAct;->e:Z

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->finish()V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/huiben/activity/OpenHuibenAct;->a(I)V

    return-void
.end method
